<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<hr>
<table border="1" cellspacing="0" width="80%">
<tr>
    <th>序号</th>
    <th>用户名称</th>
    <th>商品名称</th>
    <th>支付状况</th>
    <%--        <th>价格</th>--%>
    <%--        <th>介绍</th>--%>
    <%--        <th>状态</th>--%>
<%--    <th>操作</th>--%>

</tr>


<c:forEach items="${buys}" var="buy" varStatus="status">
    <tr align="center">
            <%--<td>${brand.id}</td>--%>
            <%--            <td>${status.count}</td>--%>
        <td>${buy.id}</td>
        <td>${buy.buyername}</td>
        <td>${buy.goodname}</td>
            <%--            <td>${buy.description}</td>--%>
        <c:if test="${buy.pay == 1}">
            <td>已支付</td>
        </c:if>
        <c:if test="${buy.pay != 1}">
            <td>未支付</td>
<%--            <td><a href="/myweb/updatePayValue?id=${buy.id}">支付</a> <a href="/myweb/deleteByIdAndBuyName?id=${buy.id}">删除</a></td>--%>
        </c:if>


    </tr>

</c:forEach>